package com.countryfinancial.android.javascript;

import android.content.Context;
import android.content.Intent;
import android.view.Gravity;
import android.widget.Toast;
import com.countryfinancial.android.auto.*;

public class MyCountryJavscriptInterface {
  Context mContext;


  public MyCountryJavscriptInterface(Context mContext) {
    super();
    this.mContext = mContext;
  }


  /** Show a toast from the web page */
  public void showToast(String toast) {
      Toast toastRef= Toast.makeText(mContext, toast, Toast.LENGTH_SHORT);
      toastRef.setGravity(Gravity.TOP|Gravity.LEFT, 0, 0);
      toastRef.show();
  }
  
  
  public void viewIdCard(){
    Intent intent = new Intent(mContext, AutoIDCardActivity.class);
    mContext.startActivity(intent);
  }
}
